package com.qike.duola.enums;

/**
 * @Author: Eric.zhou
 * @Date: 2019/6/11 14:53
 */
public enum AuthEnums {
    UNCERTIFIED                  (1),
    CERTIFIED                  (2),
    ;
    private Integer ecode;


    AuthEnums(Integer ecode) {
        this.ecode = ecode;
    }

    public Integer getEcode() {
        return ecode;
    }


    public static AuthEnums statOf(String ecode) {
        for (AuthEnums state : values())
            if (state.getEcode().equals(ecode))
                return state;
        return null;
    }
}
